package org.ushio.speech_module.speech.sentence;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 陈红
 * 句子数据访问接口
 * 提供句子(Sentence)的CRUD操作及关联查询
 */
@Mapper
public interface SentenceMapper {

    Sentence findById(Long sentenceId);

    List<Sentence> findAll();

    int insert(Sentence sentence);

    int update(Sentence sentence);

    int deleteById(Long sentenceId);

    List<Sentence> findByChapterId(Long chapterId);

}